package com.weimob.mcloud.wechatwork.customer.service.user.module.bo.customer;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.weimob.mcloud.wechatwork.common.support.codec.serializer.LongSerializer;
import com.weimob.mcloud.wechatwork.customer.service.user.base.PageResponse;

import java.util.List;

/**
 * 客户结果页
 * Create Time: 2021年10月20日 17:24
 *
 * @author maosheng.li
 **/
public class CustomerPageResponse<T> extends PageResponse<T>{

    private static final long serialVersionUID = -4644139524698700181L;
    /**
     * 流失总数量
     */
    @JsonSerialize(using = LongSerializer.class)
    private Long loseTotalCount;

    public CustomerPageResponse(List<T> data, Integer pageNum, Integer pageSize, Long totalCount, Long loseTotalCount) {
        super(data, pageNum, pageSize, totalCount);
        this.loseTotalCount = loseTotalCount;
    }

    public CustomerPageResponse(List<T> data) {
        super(data);
    }

    public CustomerPageResponse() {

    }

    public Long getLoseTotalCount() {
        return loseTotalCount;
    }

    public void setLoseTotalCount(Long loseTotalCount) {
        this.loseTotalCount = loseTotalCount;
    }


}
